import {get, post} from './http'

// 获取新人专享
export const getNewPeople = ()=>get('/api/getnew')
//万人团
export const getThousandPeople = ()=>get('/api/getgroupon')
// 获取商品信息首页
export const getGoodsList = ()=>get('/api/getindexgoods')
// 秒杀
export const seckillList = ()=>get('/api/getseckill')
// 倒计时
export const countdown = ()=>get('/api/getcountdown')

//获取商品分类
export const cateList = ()=>get('/api/getcate')
//获取分类商品不分类
export const cateGoodsList = ()=>get('/api/getgoods')
//获取分类商品分类
export const cateGoodsListfl = (params)=>get('/api/getgoods',params)
// 获取商品详情
export const getGoodsInfo = (params)=>get('/api/getgoodsinfo',params)

// 购物车添加
export const addCart = (data)=>post('/api/cartadd',data)
// 购物车列表
export const getCartList = (params)=>get('/api/cartlist',params)
// 购物车删除
export const delCart = (data)=>post('/api/cartdelete',data)



// 会员注册
export const userRegister = (data)=>post('/api/register',data)
// 会员登录
export const userLogin = (data)=>post('/api/login',data)

// 倒计时
export const getCountdown = ()=>get('/api/getcountdown')

//轮播图
export const getBanner = ()=>get('/api/getbanner')







